<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="button" name="" id="gaoyang" value="按钮" />
		<script type="text/javascript">
			(
				function () {
					function show () {
				document.write("匿名函数自动执行")
					}

				document.getElementById("gaoyang").onclick=show;
			})(	);
			
			
			
			
		</script>
	</body>
</html>
